#! /bin/sh

name=libxrandr
version=1.5.4
revision=1
tarball_url="https://www.x.org/archive/individual/lib/libXrandr-${version}.tar.gz"
tarball_blake2b="d5dd5ef33c4452fac7d2c5f16afc15d9e2dcb4e721824ca6e412c6a990ab529003e1beea087afad9dedbcceab17953e066700dac7df0b2aac2cec404335ba93f"
hostdeps="gcc pkg-config"
deps="core-libs xorg-proto libx11 libxrender libxext"

prepare() {
    autotools_recursive_regen
}

configure() {
    autotools_configure
}

build() {
    make -j${parallelism}
}

package() {
    DESTDIR="${dest_dir}" make install

    post_package_strip
}
